SET(NETLIB_SRCS
    NetServer.h
    NetSession.h
    NetSession.cpp
    NetCommon.h
    NetPool.h
    NetConfig.h
    NetConfig.cpp
)

#SOURCE_GROUP("" FILES NetServer.h NetSession.h NetSession.cpp)
#SOURCE_GROUP("Common" REGULAR_EXPRESSION /Common/[^/]*\\.\(h|cpp\))

ADD_LIBRARY(NetLib ${NETLIB_SRCS})

IF(WIN32)
    TARGET_LINK_LIBRARIES(NetLib
    )
ELSE(WIN32)
    TARGET_LINK_LIBRARIES(NetLib
        ${Boost_SYSTEM_LIBRARY}
        ${Boost_FILESYSTEM_LIBRARY}
        ${Boost_THREAD_LIBRARY}
        ${Boost_SERIALIZATION_LIBRARY}
    )
ENDIF(WIN32)
